import Vue from "vue";
import Vuex from  'vuex'

import indexModule from './modules/index'
import  createPersistedState  from 'vuex-persistedstate'


Vue.use(Vuex)


export default new  Vuex.Store({
    modules:{
        indexModule
    },
    plugins:[createPersistedState({
        storage:{
            getItem:(key)=>{},
            setItem:(key,value)=>{},
            removeItem:key=>{}

        }
    })]
    
})